home *** CD-ROM | disk | FTP | other *** search
- on mouseUp
- if the platform contains "windows" then
- set ctbPath to the pathName
- set tmpString to EMPTY
- set currentCharNum to 1
- repeat while char currentCharNum of ctbPath <> ":"
- set tmp to char currentCharNum of ctbPath
- set tmpString to tmpString & tmp
- set currentCharNum to currentCharNum + 1
- end repeat
- set HardDrive to tmpString & ":\"
- set ctbPath to HardDrive & "ExamView\"
- set ctb to ctbPath & "evpro.exe"
- set err to OpenApp(ctb, "AB")
- else
- set err to "none"
- set ctbPath to the pathName
- set tmpString to EMPTY
- set currentCharNum to 1
- repeat while char currentCharNum of ctbPath <> ":"
- set tmp to char currentCharNum of ctbPath
- set tmpString to tmpString & tmp
- set currentCharNum to currentCharNum + 1
- end repeat
- set HardDrive to tmpString & ":"
- set ctbPath to HardDrive & "ExamView Pro:"
- set ctb to ctbPath & "ExamView Pro"
- open(ctb)
- end if
- if err <> "none" then
- alert(err)
- go("main")
- end if
- end
-